package com.woniu.microcommunityserver.facility.service.impl;

import com.woniu.microcommunityserver.facility.entity.CommunalFacilityInfoEntity;
import com.woniu.microcommunityserver.facility.mapper.CommunalFacilityInfoMapper;
import com.woniu.microcommunityserver.facility.service.CommunalFacilityInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CommunalFacilityInfoServiceImpl implements CommunalFacilityInfoService {
    @Resource
    private CommunalFacilityInfoMapper communalFacilityInfoMapper;

    @Override
    public List<CommunalFacilityInfoEntity> findAll() {
        return communalFacilityInfoMapper.findAll();
    }

    @Override
    public List<CommunalFacilityInfoEntity> findAny(Map<String, Object> map) {
        return communalFacilityInfoMapper.findAny(map);
    }

    @Override
    public boolean insertFacility(CommunalFacilityInfoEntity communalFacilityInfoEntity) {
        return communalFacilityInfoMapper.insertFacility(communalFacilityInfoEntity);
    }

    @Override
    public boolean deleteFacility(Integer id) {
        return communalFacilityInfoMapper.deleteFacility(id);
    }

    @Override
    public boolean updateFacility(CommunalFacilityInfoEntity communalFacilityInfoEntity) {
        return communalFacilityInfoMapper.updateFacility(communalFacilityInfoEntity);
    }
}
